<template>
  <div style="display:inline-block;">
    <label class="radio-label">Cell Auto-Width: </label>
    <el-radio-group v-model="autoWidth">
      <el-radio :label="true" border>
        True
      </el-radio>
      <el-radio :label="false" border>
        False
      </el-radio>
    </el-radio-group>
  </div>
</template>

<script setup>
import { defineProps, defineEmits, computed } from 'vue'

const props = defineProps({
  modelValue: {
    type: Boolean,
    default: true
  }
})

const emits = defineEmits(['update:modelValue']);

const autoWidth = computed({
  get: () => props.modelValue,
  set: val => {
    emits('update:modelValue', val)
  }
})
</script>
<script>
export default {
  name: 'AutoWidthOption'
}
</script>

<style scoped>

</style>
